
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@page import="org.eclipse.jdt.internal.compiler.ast.Assignment"%>
<%@page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<style type="text/css">
.blanco {
	color: #FFF;
	text-align: right;
	font-weight: bold;
}
.letra {
	font-family: Calibri;
	font-size: 12px;
}
.rojo {
	color: #F00;
}

</style>
</head>
<body>
	<form name="f1" method="post" action="RegistrarLocal">
	  <table width="380" height="214" border="0" class="letra">
	    <tr>
	      <td colspan="2" bgcolor="#360"><span class="letra2"><em class="blanco">Registro de Locales</em></span></td>
        </tr>
	    <tr>
	      <td width="160">&nbsp;</td>
	      <td width="210">&nbsp;</td>
        </tr>
	    <tr>
	      <td><span class="letra2"><em>Nombre:</em><em class="rojo">*</em></span></td>
	      <td>          <span class="letra2">
          <input type="text" name="txtLocal" id="txtLocal" />	      
          </span></td>
        </tr>
	    <tr>
	      <td><span class="letra2"><em>Direcci&oacute;n:</em><em class="rojo">*</em></span></td>
	      <td>          <span class="letra2">
          <input type="text" name="txtDireccion" id="txtDireccion" />	      
          </span></td>
        </tr>
	    <tr>
	      <td><span class="letra2"><em>Distrito:</em><em class="rojo">*</em></span></td>
	      <td>
	        <span class="letra2">
	        <select name="cboDistrito" id="cboDistrito">
	        <%@page import="java.util.ArrayList,powerdev.modelo.Distrito, powerdev.negocio.GestionDistrito"%>
			<%
				GestionDistrito ned=new GestionDistrito();
				ArrayList<Distrito> distritos = (ArrayList<Distrito>) ned.ListarDistrito();
				if (distritos != null) {
					for (Distrito x : distritos) {
						out.print("<option value=" + x.getCo_Distrito()+ "> "+ x.getNo_Distrito() + "</option>");
					}
				} else {
				out.println("ERROR");
				}
			%>
            </select>
            </span>
            </td>
        </tr>
	    <tr>
	      <td><span class="letra2"><em>Direcci&oacute;n Google Maps:</em><em class="rojo">*</em></span></td>
	      <td>          <span class="letra2">
          <input type="text" name="txtDireGoo" id="txtDireGoo" />	      
          </span></td>
        </tr>
	    <tr>
	      <td><span class="letra2"><em>Tel&eacute;fono Fijo:</em></span></td>
	      <td>          <span class="letra2">
          <input type="text" name="txtTelefono" id="txtTelefono" />	      
          </span></td>
        </tr>
	    <tr>
	      <td>&nbsp;</td>
	      <td>
	      <input type="hidden" name="txtCoPersona2" id="txtCoPersona2" value=${sessionScope.USUARIO_ACTUAL.co_Persona }></td>
        </tr>
	    <tr>
	      <td>&nbsp;</td>
	      <td>	        <span class="letra2">
	        <label for="cboDistrito">
	          <input type="reset" name="btnCancelar" id="btnCancelar" value="Cancelar" />
	          <input type="submit" name="btnGuardar" id="btnGuardar" value="Grabar" />
          </label>
	      </span></td>
        </tr>
      </table><br>${MENSAJE }
	</form>
	
</body>
</html>